class A:
  def __new__(cls, *args):
    print('__new__')
    return super().__new__(cls)

  def __init__(self,x) -> None:
    self.x = x
    print('__init__')

  def __del__(self):
    print('__del__')


result = A(1)
# o= result

print(result)
print(result.x)

del result
print('finish')
